<template>
  <div>
    <h3>我是Profile组件</h3>
    <p>我叫：{{ $route.query.name }}</p>
    <p>今年：{{ $route.query.age }}</p>
  </div>
</template>

<script>
export default {
  name: "Profile",

  created() {
    console.log("Profile被创建");
  },

  destroyed() {
    console.log("Profile被销毁");
  },
};
</script>

<style scoped>
</style>